//
//  FLSameTableViewCell.m
//  FeeLing
//
//  Created by 乔光玉 on 2019/1/4.
//  Copyright © 2019年 大仙儿飘. All rights reserved.
//

#import "FLSameTableViewCell.h"

@implementation FLSameTableViewCell
- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        [self initsubviews];
    }
    return self;
}
-(void)initsubviews{
    
    self.contentView.backgroundColor = [UIColor colorWithHexString:@"#2B2D5C"];
    
   
    
    _titlelabel = [[UILabel alloc] init];
    _titlelabel.textAlignment = NSTextAlignmentLeft;
    _titlelabel.frame = CGRectMake(40,29,120,22);
    
    _titlelabel.font = [UIFont fontWithName:@"PingFang-SC-Regular" size:16];
    _titlelabel.textColor = [UIColor colorWithHexString:@"#FFFFFF"];
    [self.contentView addSubview:_titlelabel];
    
    
    _timelabel =[[UILabel alloc] init];
    _timelabel.textAlignment = NSTextAlignmentRight;
    _timelabel.frame = CGRectMake(SCREENWIDTH-40-100,30,100,20);
    
    _timelabel.font = [UIFont fontWithName:@"PingFang-SC-Regular" size:14];
    _timelabel.textColor = [UIColor colorWithHexString:@"#F63632"];
    [self.contentView addSubview:_timelabel];
    _timelabel.hidden = YES;
    
    _listImageView = [[UIImageView alloc]initWithImage:[UIImage imageNamed:@"展开"]];
    _listImageView.frame = CGRectMake(SCREENWIDTH-33-30, 25, 30, 30);
    [self.contentView addSubview:_listImageView];
    
    UIView * line = [[UIView alloc]initWithFrame:CGRectMake(15, 65, SCREENWIDTH-30, 1)];
    line.backgroundColor = [UIColor colorWithHexString:@"#353662"];
    [self.contentView addSubview:line];
    
    
}
- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
